package com.ecjtu.stadiumre_servations.entity.dto.DataAnalysisDTO;

import lombok.Data;

@Data
public class DataRoughDTO {

    //多条记录累加得到的总使用次数
    private Integer totalCount;
    private Integer totalSingleCount;
    private Integer totalGroupCount;
    private Double singleCountRatio;
    private Double groupCountRatio;
    //多条记录累加得到的总使用时长
    private Long totalTime;
    private Long totalSingleTime;
    private Long totalGroupTime;
    private Double singleTimeRatio;
    private Double groupTimeRatio;
    //多条记录累加得到的总利润
    private Double totalProfit;
    private Double totalSingleProfit;
    private Double totalGroupProfit;
    private Double singleProfitRatio;
    private Double groupProfitRatio;

    public DataRoughDTO(Integer totalCount, Integer totalSingleCount, Integer totalGroupCount, Double singleCountRatio, Double groupCountRatio, Long totalTime, Long totalSingleTime, Long totalGroupTime, Double singleTimeRatio, Double groupTimeRatio, Double totalProfit, Double totalSingleProfit, Double totalGroupProfit, Double singleProfitRatio, Double groupProfitRatio) {
        this.totalCount = totalCount;
        this.totalSingleCount = totalSingleCount;
        this.totalGroupCount = totalGroupCount;
        this.singleCountRatio = singleCountRatio;
        this.groupCountRatio = groupCountRatio;
        this.totalTime = totalTime;
        this.totalSingleTime = totalSingleTime;
        this.totalGroupTime = totalGroupTime;
        this.singleTimeRatio = singleTimeRatio;
        this.groupTimeRatio = groupTimeRatio;
        this.totalProfit = totalProfit;
        this.totalSingleProfit = totalSingleProfit;
        this.totalGroupProfit = totalGroupProfit;
        this.singleProfitRatio = singleProfitRatio;
        this.groupProfitRatio = groupProfitRatio;
    }

    public DataRoughDTO() {
        this.totalCount = 0;
        this.totalSingleCount = 0;
        this.totalGroupCount = 0;
        this.singleCountRatio = 0.0;
        this.groupCountRatio = 0.0;

        this.totalTime = 0L;
        this.totalSingleTime = 0L;
        this.totalGroupTime = 0L;
        this.singleTimeRatio = 0.0;
        this.groupTimeRatio = 0.0;

        this.totalProfit = 0.0;
        this.totalSingleProfit = 0.0;
        this.totalGroupProfit = 0.0;
        this.singleProfitRatio = 0.0;
        this.groupProfitRatio = 0.0;

    }
}
